import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class NumberOne {
    public static void main(String[] args) {
        Properties properties=new Properties();
        properties.setProperty("brand", "Iphone11Pro Max");
        properties.setProperty("capacity", "256G");
        properties.setProperty("price", "10899");
        try(
                FileWriter fileWriter=new FileWriter("dome4_1/src/iphone.properties")
                ) {
            properties.store(fileWriter,"shi ge bei zhu");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
